import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("Please enter three number:");
        int m = add(2, 3);
        double n = add(2.5, 4.7, 3.1);
        System.out.println("整数x和y的最大值：" + m);
        System.out.println("浮点数x,y,z的最大值" + n);
    }
    //递归求解汉诺塔问题

}
    /*//求最大值方法的重载
    public static int add(int x,int y) {
        return x>y?x:y;
    }
    public static double add(double x,double y,double z) {
        double m = x>y?x:y;
        double n = m>z?m:z;
        return n;
    }
}*/
 /*   //求和的重载
    public static int add(int x,int y) {
        return x+y;
    }

    public static double add(double x,double y,double z) {
        return x+y+z;
    }
}*/
   /* //求数字的最大值
    public static int max2(int a,int b){
        return a>b?a:b;
    }
    public static int max3(int a,int b,int c){
        int i = max2(a,b);
        return i>b?i:b;
    }
}*/
   /* //求斐波那契数列的前n项
    public static int fab(int m) {
        if(m == 1 || m == 2){
            return 1;
        }
        return fab(m-1)+fab(m-2);
    }
}*/
   /* 求一个数的各项相加
   public static int sum(int m){
        if(m <= 0){
            return 0;
        }
        return (m%10) + sum(m/10);
    }
}*/
    /*递归求1到10的和
    public static int sum(int m) {
        if (m == 1) {
            return 1;
        }
        return m + sum(m - 1);
    }
}*/
    /*递归打印
    public static void prinf(int i) {
        if(i>9) {
            prinf(i/10);
            System.out.print(" ");
        }
        System.out.print(i%10);
    }*/
//}